.PHONY:all
all:server.out client.out

PROTOCOL ?=

server.out:Servercal.cc
	@g++ $(PROTOCOL) -o $@ $^ -std=c++17 -lpthread -ljsoncpp
client.out:Clientcal.cc
	@g++ $(PROTOCOL) -o $@ $^ -std=c++17 -lpthread -ljsoncpp

.PHONY:clean
clean:
	@rm -f server.out client.out

.PHONY:json myself

json:
	@make PROTOCOL=
myself:
	@make PROTOCOL=-DMySelf